<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link href="<?php echo $_BASE_DIR?>css_v1/style.css" rel="stylesheet" type="text/css" />
<link href="<?php echo $_BASE_DIR?>css_v1/select.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<?php echo $_BASE_DIR?>js_v1/jquery.js"></script>
<script type="text/javascript" src="<?php echo $_BASE_DIR?>js_v1/jmw.js"></script>
<script type="text/javascript" src="<?php echo $_BASE_DIR?>js_v1/select-ui.min.js"></script>
<script type="text/javascript" src="<?php echo $_BASE_DIR?>js_v1/jquery.DatePicker.js"></script>

<script type="text/javascript">
$(document).ready(function(e) {
    $(".select1").uedSelect({
		width : 345			  
	});
	$(".select2").uedSelect({
		width : 167  
	});
	$(".select3").uedSelect({
		width : 80
	});
});
</script>



</head>

<body>

<div class="place">
    <span>位置：</span>
    <ul class="placeul">
    <li><a href="<?php echo url("leftmenu/bottom")?>">首页</a></li>
    <li><a href="#">提现申请</a></li>
    </ul>
    </div>
 <form method="post" action="<?php echo url("withdraw/index") ?>">
     <div style="clear: both;width:1100px;height:35px;line-height:35px;margin-bottom:5px;">
    <div class="rightinfo">	
<!--------------------------------------->	
	<!--  <ul class="seachforms">
             <li>
				<label>姓名：</label>
				<input type="text" name="realname" class="scinputjmw" value="<?php echo isset($param['realname'])?$param['realname']:'';?>"/>				
			</li>
             <li>
				<label>手机号码：</label>
				<input type="text" name="acctname" class="scinputjmw" value="<?php echo isset($param['acctname'])?$param['acctname']:'';?>"/>				
			</li>
         </ul> -->

         
        </div>
         </div>

         <div style="clear: both;width:1100px;height:35px;line-height:35px;margin-bottom:5px;">
             <div class="rightinfo">
                 <!--------------------------------------->
                 <ul class="seachforms">
				 <li><label>状态</label>  
    <div class="vocation">
    <select name="apply_status" class="select2">
	<option value=""  >请选择状态</option>
	<option value="0" <?php if(isset($param['apply_status'])&& $param['apply_status']==='0')  echo 'selected';else echo ''; ?>>待打款</option>
	<option value="99" <?php if(isset($param['apply_status'])&& $param['apply_status']==='99')  echo 'selected';else echo ''; ?>>已打款</option>
	</select>
    </div>
    </li>
 
    <li><label>申请提现时间：</label><input name="created_timestart" id="created_timestart" value="<?php echo isset($param['created_timestart'])?$param['created_timestart']:'';?>" type="text" class="scinputjmw" />---<input name="created_timeend" id="created_timeend" value="<?php echo isset($param['created_timeend'])?$param['created_timeend']:'';?>" type="text" class="scinputjmw" /></li>  
    <li>
     <label>&nbsp;</label><input type="submit" class="scbtn" value="查询" style="width:60px;"/></li>
     
 
    </ul>
</div>
</div>
</form>	

<!---------------------------------------------------------------------------- --> 	

		<script>
	$('#created_timestart').datePicker({followOffset : [0, 24]});
	$('#created_timeend').datePicker({followOffset : [0, 24]});
	</script>
<form action="" method="post" name="form">
	
    <table class="tablelist">

    	<thead>
    	<tr>
        <th width="5%"><input type="checkbox" value="on" name="chkall" onClick="CheckAll(this.form)"/></th>
        		<th width="10%">账户名</th>
        		<th width="10%">账号</th>
				<th width="10%" >提现金额</th>
				<th width="5%" >状态</th>
				<th width="15%" >申请时间</th>
				<th width="15%" >操作</th>
        </tr>
        </thead>
        <tbody>
        <?php foreach ($item as $k=>$v):?>
        <tr>
        <td><input name="withdrawid" id="withdrawid" type="checkbox" value="<?php echo $v['id']?>" /></td>
        	<td><?php echo h($v['bank_account']);?></td>
        	<td><?php echo h($v['bank_card']);?></td>
		     <td><?php echo h($v['withdraw_money']);?></td>
			<td><?php  if($v['apply_status'] == 0){
			          echo '待打款';
			      } 
			      if($v['apply_status'] == 99){
			          echo '已打款';
			      }
			      if($v['apply_status'] == 2){
			          echo '打款拒绝';
			      }
			      ?></td>
			<td><?php echo date('Y-m-d H:i:s',$v['created']);?></td>
		 	  	<td><a style="color:blue;" href="<?php echo url("withdraw/add",array('id'=>$v['id']))?>">审核并打款</a>
		  	
		  	 
		  	</td>
		  	
        </tr> 
        <?php endforeach;?>
        
        </tbody>
    </table>
    
   </form>
 
    	<?php echo Q::control('pagination','pagination',array('url_args'=>$param,'pagination'=>$pagination,'show_count'=>1))?>
    </div>
  
    <script type="text/javascript">
	$('.tablelist tbody tr:odd').addClass('odd');
	</script>

</body>
<iframe id="excel" name="excel" width="0" height="0"></iframe>
</html>


